package data
{
	public class DataBase
	{
		/**
		 *空地坐标 
		 */		
		private var farmArrX:Array = [487,320];
		private var farmArrY:Array = [82,85];
		
		public var farm_arr:Array = [];
		/**
		 *空地图片路径 
		 */		
		public var farm_url:String = "assets/farm.png";
		
		/**
		 * 背景图片路径
		 */		
		public var bg_url:String =  "assets/map2.jpg";
		
		public var building_url:String = "assets/building.png";
		/**
		 *地图路线
		 */		
		public var line_arr:Array = []
		private var lineArrX:Array = [770,755,741,726,711,697,683,668,654,640,627,613,600,588,580,574,568,564,561,556,550,540,528,514,500,486,472,458,446,435,426,422,418,413,408,405,399,391,378,363,348,334,320,306,292,277,262,248,234,221,209,201,194,190,192,194,202,215,228,241,254,268,283,297,312,326,340,355,369,383,397,411,425,440,454,468,481,492,500,504,504,501,496,488,477,462,448,433,419,406,392,378,366,357,353,352,351,350,350,350]
		private var lineArrY:Array = [146,146,146,147,147,147,148,148,148,148,147,145,142,133,121,108,95,82,68,54,41,31,23,17,13,11,13,18,26,35,45,59,72,86,100,114,127,139,146,149,149,148,147,147,146,147,148,149,152,156,163,175,188,202,216,231,243,251,258,264,268,270,269,268,266,264,261,259,256,254,251,249,249,249,251,255,260,269,281,295,310,324,337,350,359,363,365,367,368,369,371,374,383,394,408,422,437,452,466,550]
		
		public function DataBase()
		{
			addFarmArray();
			addLineArray();
		}
		/**
		 *路线坐标写入line_arr 数组 
		 * 
		 */		
		private function addLineArray():void
		{
			for(var i:uint =0;i<lineArrX.length;i++)
			{
				line_arr.push([lineArrX[i],lineArrY[i]]);
			}
		}
		/**
		 *空地坐标写入farm_arr 数组
		 * 
		 */		
		private function addFarmArray():void
		{
			for (var i:int = 0; i < farmArrX.length; i++) 
			{
				farm_arr.push([farmArrX[i],farmArrY[i]]);
			}
		}
	}
}